import { createSSRApp } from 'vue';
import { navigateTo } from '@/utils/util';
import App from './App.vue';
import store from './stores';
import { routeInterceptor, requestInterceptor } from './interceptors';
// import 'virtual:svg-icons-register';
import 'virtual:uno.css';
import '@/style/index.scss';
//  #ifdef APP-PLUS
import '@/uni_modules/XZH-Shortcut-UTS';
// #endif
export function createApp() {
  const app = createSSRApp(App);
  app.use(store);
  app.use(routeInterceptor);
  app.use(requestInterceptor);
  app.config.globalProperties.$navigateTo = navigateTo;
  return {
    app,
  };
}
